package com.ideacode.bean;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity @Table(name = "tb_feedback")
public class TbFeedBack implements Serializable{

    private static final long serialVersionUID = 8394979715028899027L;

    private int id;
    private int userId;
    private String feedbackTitle;
    private String feedbackContent;
    private String feedbackLoc;
//    private Timestamp feedbackTime;    
	private String udf1;
    private String udf2;
    private String udf3;
    private int taskType;

    public TbFeedBack(){

    }

    public TbFeedBack(String feedbackTitle){
        this.feedbackTitle = feedbackTitle;
    }    

    @Id @Column(name = "id",length=10)
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }

    @Column(name= "user_id",length=10)
    public int getUserId() {
        return userId;
    }
    public void setUserId(int userId) {
        this.userId = userId;
    }

    @Column(name = "feedback_title",length=100)
    public String getFeedbackTitle() {
        return feedbackTitle;
    }
    public void setFeedbackTitle(String feedbackTitle) {
        this.feedbackTitle = feedbackTitle;
    }

    @Column(name = "feedback_content",length=100)
    public String getFeedbackContent() {
        return feedbackContent;
    }
    public void setFeedbackContent(String feedbackContent) {
        this.feedbackContent = feedbackContent;
    }

    @Column(name = "feedback_loc",length=200)
    public String getFeedbackLoc() {
        return feedbackLoc;
    }
    public void setFeedbackLoc(String feedbackLoc) {
        this.feedbackLoc = feedbackLoc;
    }

    @Column(name = "udf1",length=100)
    public String getUdf1() {
        return udf1;
    }
    public void setUdf1(String udf1) {
        this.udf1 = udf1;
    }

    @Column(name = "udf2",length=100)
    public String getUdf2() {
        return udf2;
    }
    public void setUdf2(String udf2) {
        this.udf2 = udf2;
    }

    @Column(name = "udf3",length=100)
    public String getUdf3() {
        return udf3;
    }
    public void setUdf3(String udf3) {
        this.udf3 = udf3;
    }
    
//    @Column(name = "feedback_time",length=0)
//    public Timestamp getFeedbackTime() {
//		return feedbackTime;
//	}
//
//	public void setFeedbackTime(Timestamp feedbackTime) {
//		this.feedbackTime = feedbackTime;
//	}

    @Column(name = "taskType",length=10)
	public int getTaskType() {
		return taskType;
	}

	public void setTaskType(int taskType) {
		this.taskType = taskType;
	}

}
